package info.davidesposito.bamboomonitor;

import info.davidesposito.bamboomonitor.display.BambooDisplay;
import info.davidesposito.bamboomonitor.display.StandardBambooDisplay;
import info.davidesposito.bamboomonitor.web.BambooMonitor;
import info.davidesposito.bamboomonitor.web.StandardBambooMonitor;

public class Main {

	/**
	 * @param args
	 * @throws InterruptedException 
	 */
	public static void main(String[] args) throws InterruptedException {
		BambooDisplay display = new StandardBambooDisplay();
		display.connect();
		BambooMonitor monitor = new StandardBambooMonitor(display); 
		Thread t = new Thread(monitor);
		t.start();
		if (monitor.monitorIsAlive()) {
			Thread.sleep(300000);
		}
		monitor.kill();
	}

}
